home *** CD-ROM | disk | FTP | other *** search
- Path: goanna.cs.rmit.EDU.AU.!numbat!jtai
- From: jtai@numbat.cs.rmit.EDU.AU (Jason Chen Hiung Tai)
- Newsgroups: comp.lang.c++
- Subject: Slow longjmp in Watcom 10.0
- Date: 16 Apr 1996 06:26:56 GMT
- Organization: Comp Sci, RMIT, Melbourne, Australia
- Message-ID: <4kvejg$ne9@goanna.cs.rmit.edu.au>
- NNTP-Posting-Host: numbat.cs.rmit.edu.au
- NNTP-Posting-User: jtai
- Summary: Why longjmp in Watcom C/C++ 10.0 so slow?
- Keywords: C++,longjmp,Watcom,compiler
- X-Newsreader: NN version 6.5.0 #1 (NOV)
-
- I did a test of longjmp under OS/2 using Watcom C/C++ 10.0 on
- a P90. What shock me was that it took almost 2400 cycles or
- ~38000 jmp per sec. The same test using gcc 2.7.? under LINUX
- shows 20 cycles or ~950000 jmp per sec. The test was compiled
- using
- wcl386 -ox -5r mytest
- Notice the '5r' and *no* debug info. If debug info was on and
- stack param passing was used, then perhaps a lot of computation
- was required to make sure the debugger back traces correctly.
- But this was off.
-
- Any help is appreciated.
-
- Thanks in advance.
-
- Jason Tai
-